package com.guodi.map.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @描述：
 * @作者: 戴伙进
 * @日期: 2020/6/3 9:30
 */
@ApiModel(value = "附件材料表")
@Data
public class MapMaterialFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "目录/附件名称")
    private String name;

    @ApiModelProperty(value = "上级目录id")
    private String parentId;

    @ApiModelProperty(value = "类型（0：目录，1：附件）")
    private Integer type;

    @ApiModelProperty(value = "目录编码")
    private String code;

    @ApiModelProperty(value = "附件大小")
    private Double fileSize;

    @ApiModelProperty(value = "附件格式")
    private String fileFormat;

    @ApiModelProperty(value = "附件路径")
    private String path;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "单位/机构id")
    private String orgId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人",hidden = true)
    private String creator;

    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "修改人",hidden =true)
    private String modifier;

    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date modifyTime;

    @ApiModelProperty(value = "子节点" ,hidden = true)
    @TableField(exist = false)
    private List<MapMaterialFile> children;

    @ApiModelProperty(value = "当前目录等级",hidden = true)
    @TableField(exist = false)
    private Integer treeLevel;

}
